<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="referrer" content="no-referrer" />
    <title>{$active.name}-参赛说明</title>
    {include file='default/public/header'/}
    <style type="text/css">
        .intro-box{
            width:90%;margin: 10px auto;
        }
        .intro-box img{
            max-width:100%;
        }
        body{
            background: #f5f5f5;
        }
    </style>
</head>
<body >
<article class="wx-article content">
    <nav class="bar bar-tab" style="height:0;top: 0;">
        {include file='default/public/fixed'/}
    </nav>
    {include file='default/public/nav'/}
    <div class="intro-box">
        {$active.intro}
    </div>
</article>
{include file='default/public/js'/}
<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">
    //初始化配置信息
    //$.showLoading();
    // $.ajax({
    //     type:"get",
    //     url:"http://touwgf.37984.net/index.php/index/wx/wx_ajax",
    //     data:{"url":window.location.href,'caller':'config'},
    //     async:"true",
    //     dataType:"jsonp",
        success:function(result){
            //$.hideLoading();
            wx.config({
                debug: false,
                appId: '{$wxconfig.appId}', 
                timestamp: '{$wxconfig.timestamp}', 
                nonceStr: '{$wxconfig.nonceStr}', 
                signature: '{$wxconfig.signature}',
                jsApiList: [
                    'checkJsApi',
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo',
                    'onMenuShareQZone'
                ]
            });
            var share_title = '{$active.share_info.title}';
            var share_desc = '{$active.share_info.intro}';
            var share_link = '{$active.share_info.url}';
            var share_imgUrl = '{$active.share_info.img}';
            var share_type = '';
            var share_dataUrl = '';

            wx.ready(function () {
                // 分享到朋友圈
                wx.onMenuShareTimeline({ title: share_title, link: share_link, imgUrl: share_imgUrl });
                // 分享给朋友
                wx.onMenuShareAppMessage({ title: share_title, desc: share_desc, link: share_link, imgUrl: share_imgUrl, type: share_type, dataUrl: share_dataUrl });
                // 分享到QQ
                wx.onMenuShareQQ({ title: share_title, desc: share_desc, link: share_link, imgUrl: share_imgUrl });
                // 分享到腾讯微博
                wx.onMenuShareWeibo({ title: share_title, desc: share_desc, link: share_link, imgUrl: share_imgUrl });
                // 分享到QQ空间
                wx.onMenuShareQZone({ title: share_title, desc: share_desc, link: share_link, imgUrl: share_imgUrl });
            });

        }

    //});
</script>
</body>
</html>